FROM java:8
MAINTAINER didi
EXPOSE 8110

VOLUME ["/gulimall-admin"]
COPY ./target/gulimall_admin.jar gulimall_admin.jar
ENV TZ=Asia/Shanghai
RUN bash -c 'touch /gulimall_admin.jar'  && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["java","-jar","/gulimall_admin.jar", "&"]
